<template>
  <div>
    <el-image :src="src">
      <div slot="error" class="image-slot">
        <img src="./preview.jpg" alt="">
      </div>
    </el-image></div>
</template>

<script>
export default {
  props: {
    src: {
      type: String,
      default: ''
    }
  }
}
</script>

<style  scoped lang="scss">
  .el-image{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    img{
      width:100%
    }
  }
</style>
